package  ${cfg.package_dir}.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import ${cfg.package_dir}.common.Result;
//接口   配置扫描后
@FeignClient(value = "${cfg.feignService?upper_case}-SERVICE", path = "/${cfg.feignService ?uncap_first}")
public interface I${cfg.feignService}RemoteService {
    /*
    * @RequestParam("id1") 必需指明参数@RequestParam("id1")  否则报错:Method has too many Body parameters: publ
    *接口是必须带的    调用的方参数可以不带
    */
    @GetMapping("/get")
    Result get(@RequestParam("id1") Integer id1 , @RequestParam("id2") Integer id2);
    @PostMapping("/post")
    Result post(@RequestBody Object obj);
}
